package com.supercube.wechat.service.impl;

import com.supercube.wechat.dao.NotificationDao;
import com.supercube.wechat.domain.NotificationDO;
import com.supercube.wechat.service.NotificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class NotificationServiceImpl implements NotificationService {
    @Autowired
    private NotificationDao notificationDao;

    @Override
    public NotificationDO get(Integer id) {
        return notificationDao.get(id);
    }

    @Override
    public List<NotificationDO> list(Map<String, Object> map) {
        return notificationDao.list(map);
    }

    @Override
    public List<Map<String, Object>> findDataList(Map<String, Object> map) {
        List<Map<String, Object>> list = notificationDao.findDataList(map);
        return list;
    }

    @Override
    public int save(NotificationDO notification) {
        return notificationDao.save(notification);
    }

    @Override
    public int update(NotificationDO notification) {
        return notificationDao.update(notification);
    }

    @Override
    public int remove(Integer id) {
        return notificationDao.remove(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return notificationDao.batchRemove(ids);
    }

    @Override
    public int updateShowNum(int num) {
        return notificationDao.updateShowNum(num);
    }

    @Override
    public int getShowNum() {
        return notificationDao.getShowNum();
    }

}
